package sunn.android.IO;

import java.util.Calendar;

public class AnTime {
	public static final String getCurrentSystemTime() {
		Calendar calendar = Calendar.getInstance();
		String timeString = String.format("%02d:%02d:%02d", calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), calendar.get(Calendar.SECOND));
		return timeString;
	}
	
	public static final String getCurrentSystemDate() {
		Calendar calendar = Calendar.getInstance();
		String dateString = String.format("%04d-%02d-%02d", calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH) + 1, calendar.get(Calendar.DAY_OF_MONTH));
		return dateString;
	}
}
